# 根据用户输入，创建多少个目录
import os
import random
def createdir () :
    sum = eval(input('请输入要创建多少个目录:'))
    path = './newdir'
    if os.path.exists(path):
        pass
    else :
        os.mkdir(path)

    for i in range(0,sum):
        if os.path.exists(path+'/'+str(i)):
            os.mkdir(os.path.join(path,str(i)+str(random.randint(1,100))))
        else :
            os.mkdir(os.path.join(path, str(i)))

if __name__ == '__main__':
    createdir()
    print (not False)